package zf.proxy;

import zf.services.FangDongServices;
import zf.services.impl.FangDongServicesImpl;

public class ZuFangProxy implements FangDongServices {
    //代理类的原则，代理类需要跟原业务类的功能保持一致
    public void zuFang() {
        //实现赋值功能
        //辅助功能
        System.out.println("发布房源");
        System.out.println("带入看房");
        System.out.println("房子介绍");
        //核心功能的调用
        FangDongServices fds = new FangDongServicesImpl();
        fds.zuFang();
    }

    public void maifang() {

    }
}
